<template>
	<scroll-view>
		<view class="container">
			<!-- Toolbar -->
			<pyh-nv ref="nv" :config="nvConfig"></pyh-nv>
			<!-- Backdrop -->
			<view class="topBackrop"></view>
			<!-- Top -->
			<view class="topContainer" :style="{'padding-top':((actionBarHeight - 5)+'px')}">
				<view class="top uni-flex uni-column">
					<view class="order-container">
						<view class="uni-flex order-no-item">
							<view class="order-item-text"
								style="-webkit-flex: 1;flex: 1;font-size: 26rpx; color: rgba(41, 43, 53, 0.8);">
								运单号：123456789123
							</view>
							<view class="order-item-text"
								style="-webkit-flex: 1;flex: 1; align-items: flex-end; justify-content: flex-end;font-size: 26rpx; color: rgba(255, 102, 0, 1);">
								待签约/待验车
							</view>
						</view>
						<!-- 合同签署 -->
						<view class="title">
							<image class="title-img" mode="widthFix" src="@/static/ic_place_order_title.png"></image>
							<view class="title-text">合同签署</view>
						</view>
						<!-- 企业名称 -->
						<view class="uni-flex order-item" style="box-sizing: border-box; padding: 0rpx 36rpx;">
							<view class="order-item-text" style="color: rgba(41, 43, 53, 1);">签署《车辆运输协议》</view>
							<view class="order-item-text"
								style="color: rgba(105, 106, 111, 1); justify-content: flex-end;">
								未签约
							</view>
						</view>
						<!-- 确认验车照 -->
						<view class="title">
							<image class="title-img" mode="widthFix" src="@/static/ic_place_order_title.png"></image>
							<view class="title-text">确认验车照</view>
						</view>
						<view style="margin: 0rpx 15rpx; padding-bottom: 15rpx;">
							<Picture :imageArr="arr" :lineNum="lineNum" :spacingNumber="spacingNumber"></Picture>
						</view>
					</view>
					<view class="uni-flex" style="margin: 22rpx 25rpx;">
						<view style="-webkit-flex: 1;flex: 1"></view>
						<view class="order">不通过</view>
						<view class="order"
							style="width: 260rpx; margin-left: 10rpx; background-color: rgba(62, 59, 54, 1); color: rgba(248, 216, 73, 1);">
							已确认，无异常
						</view>
					</view>
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
	import Picture from '@/components/pic/Picture.vue';
	export default {
		components: {
			Picture
		},
		data() {
			return {
				nvConfig: {
					title: "运单详情",
					bgColor: "#ffffff",
					color: "#000000",
					fixedAssist: {
						hide: true,
					},
					transparent: {
						initColor: "#000000",
					}
				},
				arr: [
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
					"https://imgcps.jd.com/ling4/100035927374/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/p-5bd8253082acdd181d02fa42/60f03300/cr/s/q.jpg",
				],
				lineNum: 3,
				spacingNumber: 10
			}
		},
		onLoad() {

		},
		onPageScroll(e) {
			this.$refs.nv.pageScroll(e)
		},
		computed: {
			actionBarHeight() {
				return parseInt(88 * uni.getSystemInfoSync().windowWidth / 750) + uni.getSystemInfoSync().statusBarHeight
			}
		},
		methods: {}
	}
</script>

<style lang="scss">
	@import '@/common/uni-nvue.css';

	page {
		background-color: $uni-bg-color-grey;
	}

	.container {
		width: 100%;
		padding-bottom: 150rpx;
	}

	.topBackrop {
		width: 100%;
		height: 540rpx;
		display: flex;
		position: fixed;
		z-index: 1;
		background-image: linear-gradient(to bottom, #F8D849, #FFED9C);
	}

	.topContainer {
		width: 100%;
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		justify-content: center;
		align-items: center;
	}

	.top {
		width: 100%;
		z-index: 10;
	}

	.title {
		width: 100%;
		height: 89rpx;
		padding: 0rpx 35rpx;
		display: flex;
		align-items: center;
	}

	.title-img {
		width: 17rpx;
	}

	.title-text {
		height: 89rpx;
		display: flex;
		margin-left: 20rpx;
		font-size: 28rpx;
		font-weight: bold;
		color: $uni-text-color;
		justify-content: center;
		align-items: center;
	}

	.order-container {
		margin: 0rpx 25rpx;
		margin-top: 20rpx;
		background-color: white;
		border-radius: 20rpx;
		box-sizing: border-box;
		align-items: center;
		background-color: white;
	}

	.order-item {
		margin: 0rpx 35rpx;
		margin-top: 15rpx;
		height: 88rpx;
		border-radius: 20rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #F6F8FA;
	}

	.order-no-item {
		width: 100%;
		box-sizing: border-box;
		padding: 21rpx 35rpx;
		border-bottom: 1rpx solid #f4f4f4;
	}

	.order-item-text {
		width: 100%;
		display: flex;
		color: rgba(41, 43, 53, 1);
		font-size: 26rpx;
	}

	.order {
		width: 200rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		height: 80rpx;
		background-color: rgba(248, 216, 73, 1);
		border-radius: 50rpx;
		color: rgba(41, 43, 53, 1);
		font-size: 26rpx;
		font-weight: bold;
	}
</style>